@use '../../../../../styles/typography';

@mixin inner-icon($size) {
  mat-icon {
    font-size: $size;
    width: $size;
    height: $size;
  }
}

:host {
  display: flex;
  align-items: center;
  flex-direction: row;
  border-bottom: 1px solid var(--color-separator);

  .search-icon {
    display: flex;
    align-items: center;
    padding-right: 5px;
    margin-left: 8px;
    margin-top: 8px;

    mat-icon {
      font-size: 1.3em;
    }
  }

  .filter-input {
    @extend %body-01;
    border: none;
    padding: 1px;
    width: 100%;
    height: 30px;
    outline: none;
    background: var(--color-background);
    flex: 1;
  }

  button {
    $size: 18px;
    width: $size;
    height: $size;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.5;

    &:hover {
      opacity: 0.8;
    }

    &:active {
      opacity: 1;
    }

    @include inner-icon($size);
  }

  .prev-next-buttons {
    display: flex;
    gap: 0.25rem;
    margin-right: 0.75rem;
  }

  .matches-count {
    white-space: nowrap;
    font-size: 11px;
    color: var(--quaternary-contrast);
    margin: 0 0.5rem;
  }

  .clear-btn {
    margin-right: 0.5rem;
    $size: 16px;
    width: $size;
    height: $size;

    @include inner-icon($size);
  }
}
